﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.IO;

namespace DataLayer
{
	class GameFile
	{
		public string FileName { get; set; }

        public GameFile() { }
		public GameFile(string filename)
        {
            FileName = filename;
        }

        public void Load(DataSet ds)
        {
            if (!string.IsNullOrEmpty(FileName) && File.Exists(FileName))
                ds.ReadXml(FileName);
        }

        public void Save(DataSet ds)
        {
            if (!string.IsNullOrEmpty(FileName))
                ds.WriteXml(FileName);
        }
	}
}
